package mybatis.mapper;

import mybatis.pojo.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;
public interface StudentMapper {
    List<Student> findAllStudent();
    int addStudent(Student student);
    void addStudents(List<Student> students);

    Student findById(Integer i);

    void updateStudent(Student student);
    @Delete("delete from t_student where id = #{id}")
    void deleteStudent(Integer i);
    List<Student> findStudentByNameAndAge(String name);
}


